package com.my.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 月子餐单
 * </p>
 *
 * @author 闫亚茹
 * @since 2018-09-09
 */
@TableName("food_relation")
public class FoodRelation extends Model<FoodRelation> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 菜品
     */
	private String food;
    /**
     * 周期关联ID
     */
	@TableField("weed_id")
	private Long weedId;
	/**
     * 菜品名POJO
     */
	@TableField(exist =  false)
	private String foodName;
    /**
     * 房间ID
     */
	@TableField("room_id")
	private Long roomId;
    /**
     * 用餐时间
     */
	private String  eachtime;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Long createTime;
    /**
     * 是否已经退房 1 已退房 2 未退房
     */
	@TableField("is_delete")
	private Integer isDelete;
    /**
     * 用户姓名
     */
	private String username;

	@TableField(exist = false)
private String  weedName;

	public String getWeedName() {
		return weedName;
	}

	public void setWeedName(String weedName) {
		this.weedName = weedName;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getFood() {
		return food;
	}

	public void setFood(String food) {
		this.food = food;
	}

	public Long getWeedId() {
		return weedId;
	}

	public void setWeedId(Long weedId) {
		this.weedId = weedId;
	}

	public Long getRoomId() {
		return roomId;
	}

	public void setRoomId(Long roomId) {
		this.roomId = roomId;
	}

	public String getFoodName() {
		return foodName;
	}

	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}

	public String getEachtime() {
		return eachtime;
	}

	public void setEachtime(String eachtime) {
		this.eachtime = eachtime;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}


	@Override
	public String toString() {
		return "FoodRelation{" +
				"id=" + id +
				", food='" + food + '\'' +
				", weedId=" + weedId +
				", roomId=" + roomId +
				", eachtime='" + eachtime + '\'' +
				", createTime=" + createTime +
				", isDelete=" + isDelete +
				", username='" + username + '\'' +
				", weedName='" + weedName + '\'' +
				'}';
	}
}
